package com.business.dynamic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 动态评论或者赞消息表 实体类
 * @author chenjiehong
 * @date 2019-12-02 17:53:53
 * @since 1.0
 */
@TableName(value = "dynamic_message")
public class DynamicMessage{

    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 动态id
	 */
	@TableField(value = "dynamic_id")
	private Integer dynamicId;


	/**
	 * 用户id
	 */
	@TableField(value = "user_id")
	private Integer userId;

	/**
	 * 来源用户id
	 */
	@TableField(value = "from_user_id")
	private Integer fromUserId;

	/**
	 * 评论id 或者 点赞id
	 */
	@TableField(value = "item_id")
	private Integer itemId; 

	/**
	 * 已读状态 1：已读 0：未读
	 */
	@TableField(value = "is_read")
	private Integer isRead; 

	/**
	 * 类型：0：评论  1：赞 
	 */
	private Integer type; 

	/**
	 * 
	 */
	@TableField(value = "create_time")
	private Date createTime; 
	// columns END


	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public Integer getDynamicId() {
		return dynamicId;
	}

    public void setDynamicId(Integer dynamicId) {
    	this.dynamicId = dynamicId;
    }
	public Integer getItemId() {
		return itemId;
	}

    public void setItemId(Integer itemId) {
    	this.itemId = itemId;
    }
	public Integer getIsRead() {
		return isRead;
	}

    public void setIsRead(Integer isRead) {
    	this.isRead = isRead;
    }
	public Integer getType() {
		return type;
	}

    public void setType(Integer type) {
    	this.type = type;
    }
	public Date getCreateTime() {
		return createTime;
	}

    public void setCreateTime(Date createTime) {
    	this.createTime = createTime;
    }

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public void setFromUserId(Integer fromUserId) {
		this.fromUserId = fromUserId;
	}

	public Integer getFromUserId() {
		return fromUserId;
	}

	@Override
	public String toString() {
		return "DynamicMessage{" +
				"id=" + id +
				", dynamicId=" + dynamicId +
				", userId=" + userId +
				", fromUserId=" + fromUserId +
				", itemId=" + itemId +
				", isRead=" + isRead +
				", type=" + type +
				", createTime=" + createTime +
				'}';
	}
}